import type { Nullable } from '@vben/types';

/**
 *
 * @description 基本返回结果类型
 * @export
 * @interface BasicResult
 */
export interface BasicResult {
  id: string;
  deleted: Nullable<boolean>;
  created_at: string;
  updated_at: string;
}

/**
 *
 * @description 分页返回类型
 * @export
 * @interface PaginationResult
 */
export interface PaginationResult<T> {
  page: number;
  page_size: number;
  total: number;
  results: T[];
}

/**
 *
 * @description 基本查询参数
 * @export
 * @interface BasicQueryParams
 */
export interface BasicQueryParams {
  query?: string;
  ordering?: string;
  page: number;
  page_size: number;
}
